<%@ include file="/common/taglibs.jsp"%>
<title><fmt:message key="orderPayPrintList.heading" /></title>
<META name="decorator" content="printable"/>
<%
	java.util.Date now = new java.util.Date();
	request.setAttribute("now", now);
%>
<c:forEach var="orderPayment" items="${orderPaymentList}" varStatus="listStatus">
	<div class="bill_list clearfix">
		<div class="top_head clearfix">
			<div class="logo_r">
				&nbsp;
			</div>
			<div class="txt">
				<fmt:message key="orderRefund.name" />
			</div>
		</div>
		<div class="content_bill clearfix">
			<div class="title clearfix">
				<h2>
					<fmt:message key="orderPayment.documentNo" />
					：${orderPayment.documentNo}
				</h2>
				<span> <fmt:message key="orderPayPrintList.print.date" /> ：
					<common:datetimeFormat date="${now}" /> </span>
			</div>
			<div class="total_money clearfix">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td style="vertical-align: top; width: 50%">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<th width="120px;">
										<fmt:message key="salesOrder.orderNo" />
										:
									</th>
									<td>
										${orderPayment.salesOrder.orderNo}
									</td>
								</tr>
								<tr>
									<th>
										<fmt:message key="orderPayment.paymentTypeDesc2" />
										:
									</th>
									<td>
										${orderPayment.paymentTypeDesc}
									</td>
								</tr>
								<c:if test="${not empty orderPayment.usedShopPoint}">
									<tr>
										<th><fmt:message key="orderPayment.usedShopPoint" />:</th>
										<td>${orderPayment.usedShopPoint}</td>
									</tr>
								</c:if>
								<c:if test="${not empty orderPayment.giftCertificateNo}">
									<tr>
										<th><fmt:message key="orderPayment.giftCertificateNo" />:</th>
										<td>${orderPayment.giftCertificateNo}</td>
									</tr>
								</c:if>
								<c:if test="${not empty orderPayment.accountInfo}">
									<tr>
										<th><fmt:message key="orderPayment.accountInfo4Refund" />:</th>
										<td>${orderPayment.accountInfo}</td>
									</tr>
								</c:if>
								<tr>
									<th>
										<fmt:message key="orderPayment.payee" />
										:
									</th>
									<td>
										${orderPayment.payee}
									</td>
								</tr>
							</table>
						</td>
						<td style="vertical-align: top; width: 50%">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<th width="120px;">
										<fmt:message key="orderPayment.paymentAmount" />
										:
									</th>
									<td>
										<common:currencyFormat value="${orderPayment.paymentAmount}" />
									</td>
								</tr>
								<tr>
									<th><fmt:message key="orderPayment.commission"/>:</th>
									<td><common:currencyFormat value="${orderPayment.commission}"/></td>
								</tr>
								<tr>
									<th>
										<fmt:message key="orderPayment.createTime" />
										:
									</th>
									<td>
										<common:datetimeFormat date="${orderPayment.createTime}" />
									</td>
								</tr>
								<tr>
									<th>
										<fmt:message key="orderPayment.returnReason" />
										:
									</th>
									<td>
										${orderPayment.returnReason}
									</td>
								</tr>
								<tr>
									<th>
										<fmt:message key="orderPayment.memo" />
										:
									</th>
									<td>
										${orderPayment.memo}
									</td>
								</tr>
								<tr>
									<th>
									</th>
									<td>
										&nbsp;
									</td>
								</tr>
							</table>
						</td>
				</table>
			</div>
			<div class="total_money clearfix">
		        <table width="100%" cellspacing="0" cellpadding="0" border="0">
					<tr>
						<th width="700px;" align="right">
							<fmt:message key="orderPrint.sign" />
							:
						</th>
						<td>
							______________________
						</td>
					</tr>	
				</table>
	        </div>
		</div>
	</div>
	<c:if test="${ fn:length(orderPaymentList) !=  (listStatus.index+1) }" >
		<div class="pageBreak"></div>
		<hr/>
	</c:if>
</c:forEach>
